package com.sy.vo;

/**
 * @author csd
 * @version 1.0
 * @date 2020/9/14 0011 11:26
 * @usage 管理员类相关的Service实现类
 */
public class GetNoticeByConditions {
    //根据什么字段排序
    private String sortBy;
    //按什么顺序排序
    private String order;
    //每页的条数
    private Integer pageSize;
    //关键词搜索
    private String keyWord;

    public GetNoticeByConditions(String sortBy, String order, Integer pageSize, String keyWord) {
        this.sortBy = sortBy;
        this.order = order;
        this.pageSize = pageSize;
        this.keyWord = keyWord;
    }

    public GetNoticeByConditions() {
    }

    public String getSortBy() {
        return sortBy;
    }

    public void setSortBy(String sortBy) {
        this.sortBy = sortBy;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getKeyWord() {
        return keyWord;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }

    public GetNoticeByConditions(String keyWord) {
        this.keyWord = keyWord;
    }

    public GetNoticeByConditions(String sortBy, String order) {
        this.sortBy = sortBy;
        this.order = order;
    }

    @Override
    public String toString() {
        return "GetNoticeByConditions{" +
                "sortBy='" + sortBy + '\'' +
                ", order='" + order + '\'' +
                ", pageSize=" + pageSize +
                ", keyWord='" + keyWord + '\'' +
                '}';
    }
}
